namespace designpatternsplusplus.decorator.Support
{
    #region

    using System;
    using System.Runtime.Serialization;

    #endregion

    /// <summary>
    /// Simple custom exception for failure to find product 
    /// in repository
    /// </summary>
    [Serializable]
    public sealed class CouldNotFindProductException : InvalidOperationException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CouldNotFindProductException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public CouldNotFindProductException(String message) : base(message) { }


        /// <summary>
        /// Initializes a new instance of the <see cref="CouldNotFindProductException"/> class.
        /// </summary>
        public CouldNotFindProductException() { }

        CouldNotFindProductException(SerializationInfo info, StreamingContext context)
            : base(info, context) { }

        /// <summary>
        /// Initializes a new instance of the <see cref="CouldNotFindProductException"/> class.
        /// </summary>
        /// <param name="str">The STR.</param>
        /// <param name="ex">The ex.</param>
        public CouldNotFindProductException(String str, Exception ex) : base(str, ex) { }
    }
}